--消防救援
local xiaofangjiuyuan = fk.CreateSkill {
    name = "mcdh_xiaofangjiuyuan",
}

local U = require "packages/utility/utility"
local lib = require "packages/mcdh/lib"

xiaofangjiuyuan:addEffect(fk.Damaged,{
    can_trigger = function(self, event, target, player, data)
        return player:hasSkill(self) and data.damageType ~= fk.NormalDamage and target:isAlive()
    end,
    on_use = function(self, event, target, player, data)
        target:drawCards(1,self.name)
    end
})

Fk:loadTranslationTable {
    ["mcdh_xiaofangjiuyuan"] = "消防救援",
    [":mcdh_xiaofangjiuyuan"] = "当一名角色受到属性伤害后，你可以令其摸一张牌。",
    ["#mcdh_xiaofangjiuyuan-invoke"] = "消防救援：令 %src 摸一张牌",
}

return xiaofangjiuyuan